// 引入koa-router
const Router = require('koa-router')
const router = new Router({ prefix:'/api/package' })
const {getPackage,addPackage,updatePackage,delPackage,searchPackage} = require('../../controller/package.controller')
// 获取套餐
router.get('/getpackage',getPackage)
// 增加套餐
router.post('/addpackage',addPackage)
// 修改套餐
router.post('/updatepackage',updatePackage)
// 删除套餐
router.post('/delpackage',delPackage)
// 搜索套餐
router.post('/searchpackage',searchPackage)
module.exports = router